public class BuildReduce extends Buff{

	public BuildReduce(int magnitude, int duration){
		this.magnitude = magnitude;
		this.duration = duration;
		this.debuff = true;
	}
	
	public void execute(Card card){
		for(int i=0; i<card.getActives().size(); i++){
			//Command c = card.getActives().get(i).type;
			if(card.getActives().get(i).type instanceof EffectActive.BuildLogicBlockCommand || card.getActives().get(i).type instanceof EffectActive.BuildEthicsBlockCommand || card.getActives().get(i).type instanceof EffectActive.BuildPassionBlockCommand || card.getActives().get(i).type instanceof EffectActive.BuildDeceptionBlockCommand){
				card.getActives().get(i).magnitude -= (int)(card.getActives().get(i).magnitude * (this.magnitude/100.0));
				System.out.println(card.getActives().get(i).magnitude);
			}
		}		
	}
}
